// vite-plugin-remove-crossorigin.js
export default function removeCrossoriginPlugin() {
  return {
    name: 'remove-crossorigin',
    transformIndexHtml(html) {
      return html.replace(/\s*crossorigin(="anonymous")?/g, '');
    },
  };
}